package com.novax.ex.activity.provider.api;

import com.novax.ex.activity.provider.common.ServerName;
import com.novax.ex.common.results.ReturnResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "${remote.swap-service.endpoint}", name = "SwapApi", contextId = "SwapApi")
public interface SwapApi {

    /**
     *
     * @param uid 用户ID
     * @param type 1 查询当天的交易量 0 查询所有的交易量
     * @return 交易笔数
     */
    @GetMapping(value = "/swap/count")
    ReturnResult<Integer> swapCount(@RequestParam("uid") Long uid, @RequestParam("type") Integer type);

}
